package com.enjia.common.bean;

import java.io.Serializable;

/**
 * 【所有服务器返回数据的基类】
 * Created by hkl
 * on 2017/5/19.
 */

public class HttpResposeBean<T> implements Serializable {
    public int code;
    public String message;
    public T data;

    /**
     * 解析对象用
     * @param respond
     * @return
     */
    /*public static HttpResposeBean parse(String respond){
        return BeanParseUtil.parse(respond, HttpResposeBean.class);
    }*/

    @Override
    public String toString() {
        return "HttpResposeBean{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
